package com.camel.docker.entity;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableLogic;
import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.camel.core.entity.BasePaginationEntity;
import com.camel.core.model.SysUser;
import com.camel.docker.enums.ZsStatus;
import lombok.Data;

/**
 * <p>
 * 
 * </p>
 *
 * @author baily
 * @since 2020-10-16
 */
@Data
public class Repository extends BasePaginationEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 仓库名称
     */
    private String name;
    /**
     * 仓库地址
     */
    private String addr;
    /**
     * 备注
     */
    private String remark;
    /**
     * 用户
     */
    private String authUser;
    /**
     * 密码
     */
    private String authPass;
    /**
     * 创建时间
     */
    private Date createdAt;
    /**
     * 创建人
     */
    @TableField(exist = false)
    private SysUser creator;

    @TableField(value = "creator")
    private Integer creatorId;
    /**
     * 状态
     */
    @TableLogic
    private ZsStatus status;


    @Override
    public String toString() {
        return "Repository{" +
        ", id=" + id +
        ", name=" + name +
        ", addr=" + addr +
        ", remark=" + remark +
        ", authUser=" + authUser +
        ", authPass=" + authPass +
        ", createdAt=" + createdAt +
        ", creator=" + creator +
        "}";
    }
}
